@layout("/common/_container.html",{js:["/assets/tApplication/tApplication_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>



<!--退款申请页面-->
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">


            <form id="" lay-filter="" class="layui-form  layui-form-pane"
                  action="">
                <input name="poId" type="hidden"/>

                <fieldset class="layui-elem-field">
                    <legend>开店申请</legend>
                    <div class="layui-field-box">

                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>基础信息</legend>
                            <div class="layui-field-box">


                                <div class="layui-form-item pane">
                                    <label class="layui-form-label">经办人<span
                                            style="color: red;">*</span></label>
                                    <div class="layui-input-block">
                                        <input id="poAgent" name="poAgent" placeholder="" type="text"
                                               class="layui-input"
                                               lay-verify="required" required readonly value="${username}"/>
                                    </div>
                                </div>

                                <div class="layui-form-item pane">
                                    <label class="layui-form-label">经办人部门<span
                                            style="color: red;">*</span></label>
                                    <div class="layui-input-block">
                                        <input id="poAgentDept" name="poAgentDept" placeholder=""
                                               type="text"
                                               class="layui-input"
                                               lay-verify="required" required readonly value="${deptName}"/>
                                    </div>
                                </div>
                            </div>
                        </fieldset>

                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>添加申请</legend>




                            <!--原有数据-->
                            <div class="layui-fluid " style="">
                                <div class="layui-card">
                                    <div class="layui-card-body">

                                        <form id="tApplicationForm" lay-filter="tApplicationForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                                            <input name="id" type="hidden"/>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">退款类型<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <select id="type" name="type" lay-verify="">
                                                        <option value="" selected>请选择退款类型</option>
                                                        @for(item in dict_name){
                                                        <option value="${item.dictId}">${item.name}</option>
                                                        @}
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">退款金额<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <input id="remoney" name="remoney" placeholder="请输入类型" type="text" class="layui-input" lay-verify="required" required/>
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label">订货单编号<span style="color: red;">*</span></label>
                                                <div class="layui-input-block">
                                                    <select id="orderId" name="orderId" lay-verify="">
                                                        <option value="" selected>请选择订货单编号</option>
                                                        @for(item in indent_order_num){
                                                        <option value="${item.id}">${item.indentOrderNum}</option>
                                                        @}
                                                    </select>
                                                </div>
                                            </div>

                                            <fieldset class="layui-elem-field layui-field-title">
                                                <legend>备注</legend>
                                                <div class="layui-field-box">

                                                    <div class="row">
                                                        <div class="layui-form-item pane">
                        <textarea id="remarks" placeholder="备注" class="layui-textarea fly-editor"
                                  name="remarks"></textarea>
                                                        </div>
                                                    </div>
                                                </div>
                                            </fieldset>

                                            <fieldset class="layui-elem-field layui-field-title">
                                                <legend>附件</legend>
                                                <div class="layui-field-box" id="imagesBox">
                                                    <input id="enclosu" name="enclosu" type="hidden" >
                                                    <div class="layui-upload">
                                                        <div class="layui-upload-list">
                                                            <table class="layui-table">
                                                                <thead>
                                                                <tr>
                                                                    <th>文件名</th>
                                                                    <th>图像</th>
                                                                    <th>状态</th>
                                                                    <th>操作</th>
                                                                </tr>
                                                                </thead>
                                                                <tbody id="imageList"></tbody>
                                                            </table>
                                                        </div>
                                                        <button type="button" style="float: right" class="layui-btn" id="start"><i class="layui-icon layui-icon-upload"></i>开始上传</button>
                                                        <button type="button" style="float: right;margin-right: 10px" class="layui-btn-primary layui-btn" id="selectFile"><i class="layui-icon layui-icon-add-1"></i>选择附件
                                                        </button>
                                                        <a href="https://hybn-1259512846.cos.ap-chengdu.myqcloud.com/温州项目下载附件.doc">
                                                            <button type="button" style="float: right;margin-right: 10px" class="layui-btn-primary layui-btn" id="downloadFile"><i class="layui-icon layui-icon-add-1"></i>下载附件
                                                            </button>
                                                        </a>
                                                    </div>
                                                </div>
                                            </fieldset>

                                            <div class="layui-form-item">
                                                <div class="layui-input-block">
                                                    <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                                                    <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                                                </div>
                                            </div>

                                        </form>
                                    </div>
                                </div>
                            </div>














                        </fieldset>
                    </div>
                </fieldset>

            </form>
        </div>
    </div>
</div>




















@}